package com.axonactive.yolo.service.internal;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import com.axonactive.yolo.monitor.CheckAvailableFlightJob;
public class QuartzJobAvailableFlight extends QuartzJobBean {
	
	private CheckAvailableFlightJob checkAvailableFlightJob;
	
	public void setCheckAvailableFlightJob(
			CheckAvailableFlightJob checkAvailableFlightJob) {
		this.checkAvailableFlightJob = checkAvailableFlightJob;
	}


	protected void executeInternal(JobExecutionContext context)
			throws JobExecutionException {

		checkAvailableFlightJob.run();

	}

}
